home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / ViewIt 2.24 Shareware.sit / ViewIt™ 2.24 Shareware / C Demo Projects / Metrowerks C 1.0a4 Demos / vDemoMC.c < prev    next >
MacBinary  |  1994-04-09  |  4.5 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Apr 9 15:59:29 1994, modified Sat Apr 9 15:59:29 1994, creator 'MMCC', type ASCII, 4043 bytes "vDemoMC.c" , at 0x104b 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 76 44 65 6d 6f 4d | 43 2e 63 00 00 00 00 00 |..vDemoM|C.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 0f cb 00 | 00 01 7e a9 cc b9 a1 a9 |........|..~.....|
|00000060| cc b9 a1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6c 15 00 00 |........|....l...|
|00000080| 2f 2a 20 56 69 65 77 49 | 74 20 32 2e 32 20 44 65 |/* ViewI|t 2.2 De|
|00000090| 6d 6f 6e 73 74 72 61 74 | 69 6f 6e 20 50 72 6f 67 |monstrat|ion Prog|
|000000a0| 72 61 6d 20 2a 2f 0d 2f | 2a 20 a9 46 61 63 65 57 |ram */./|* .FaceW|
|000000b0| 61 72 65 20 31 39 39 31 | 2d 39 34 2e 20 20 41 6c |are 1991|-94. Al|
|000000c0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000000d0| 64 2e 20 2a 2f 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |d. */..#|include |
|000000e0| 22 73 74 72 69 6e 67 2e | 68 22 0d 23 69 6e 63 6c |"string.|h".#incl|
|000000f0| 75 64 65 20 22 46 61 63 | 65 53 74 6f 72 4d 43 2e |ude "Fac|eStorMC.|
|00000100| 68 22 0d 65 78 74 65 72 | 6e 20 73 74 72 75 63 74 |h".exter|n struct|
|00000110| 20 46 61 63 65 52 65 63 | 20 66 52 65 63 3b 0d 70 | FaceRec| fRec;.p|
|00000120| 61 73 63 61 6c 20 76 6f | 69 64 20 4f 76 65 72 50 |ascal vo|id OverP|
|00000130| 72 6f 63 28 50 74 72 20 | 74 68 65 50 74 72 29 3b |roc(Ptr |thePtr);|
|00000140| 0d 0d 73 68 6f 72 74 20 | 68 65 6c 70 53 68 6f 77 |..short |helpShow|
|00000150| 6e 3b 0d 73 74 72 75 63 | 74 20 7b 0d 09 73 68 6f |n;.struc|t {..sho|
|00000160| 72 74 09 09 6d 79 49 6e | 74 65 67 65 72 3b 0d 09 |rt..myIn|teger;..|
|00000170| 66 6c 6f 61 74 09 09 6d | 79 52 65 61 6c 3b 0d 09 |float..m|yReal;..|
|00000180| 63 68 61 72 09 09 6d 79 | 53 74 72 69 6e 67 5b 31 |char..my|String[1|
|00000190| 30 30 5d 3b 0d 09 6c 6f | 6e 67 09 09 6d 79 46 6c |00];..lo|ng..myFl|
|000001a0| 61 67 73 3b 0d 09 7d 20 | 6d 79 52 65 63 3b 0d 73 |ags;..} |myRec;.s|
|000001b0| 68 6f 72 74 20 6d 79 4c | 69 73 74 3b 0d 6c 6f 6e |hort myL|ist;.lon|
|000001c0| 67 20 6f 6c 64 54 69 63 | 6b 73 2c 6e 65 77 54 69 |g oldTic|ks,newTi|
|000001d0| 63 6b 73 2c 74 68 65 50 | 72 6f 63 50 74 72 3b 0d |cks,theP|rocPtr;.|
|000001e0| 66 6c 6f 61 74 20 74 68 | 65 52 65 61 6c 2c 64 65 |float th|eReal,de|
|000001f0| 6c 74 61 3b 0d 0d 23 69 | 66 6e 64 65 66 20 70 6f |lta;..#i|fndef po|
|00000200| 77 65 72 63 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |werc.pas|cal void|
|00000210| 20 66 4a 75 6d 70 49 74 | 28 50 74 72 20 74 68 65 | fJumpIt|(Ptr the|
|00000220| 50 74 72 29 20 3d 20 7b | 30 78 32 32 35 37 2c 30 |Ptr) = {|0x2257,0|
|00000230| 78 32 30 35 31 2c 30 78 | 34 45 39 30 7d 3b 0d 23 |x2051,0x|4E90};.#|
|00000240| 65 6e 64 69 66 0d 0d 70 | 61 73 63 61 6c 20 76 6f |endif..p|ascal vo|
|00000250| 69 64 20 4f 76 65 72 50 | 72 6f 63 28 50 74 72 20 |id OverP|roc(Ptr |
|00000260| 74 68 65 50 74 72 29 20 | 7b 0d 09 69 66 20 28 66 |thePtr) |{..if (f|
|00000270| 52 65 63 2e 75 43 6f 6d | 6d 61 6e 64 20 3d 3d 20 |Rec.uCom|mand == |
|00000280| 32 36 34 29 09 09 09 2f | 2a 20 61 20 6b 65 79 20 |264).../|* a key |
|00000290| 64 6f 77 6e 20 6d 65 73 | 73 61 67 65 3f 20 2a 2f |down mes|sage? */|
|000002a0| 0d 09 09 69 66 20 28 66 | 52 65 63 2e 75 50 61 72 |...if (f|Rec.uPar|
|000002b0| 61 6d 5b 30 5d 20 3d 3d | 20 33 32 29 09 09 2f 2a |am[0] ==| 32)../*|
|000002c0| 20 53 50 41 43 45 20 6b | 65 79 20 70 72 65 73 73 | SPACE k|ey press|
|000002d0| 65 64 3f 20 2a 2f 0d 09 | 09 09 66 52 65 63 2e 75 |ed? */..|..fRec.u|
|000002e0| 50 61 72 61 6d 5b 30 5d | 20 3d 20 39 35 3b 09 09 |Param[0]| = 95;..|
|000002f0| 09 2f 2a 20 63 6f 6e 76 | 65 72 74 20 74 6f 20 55 |./* conv|ert to U|
|00000300| 4e 44 45 52 4c 49 4e 45 | 20 2a 2f 0d 23 69 66 64 |NDERLINE| */.#ifd|
|00000310| 65 66 20 70 6f 77 65 72 | 63 0d 09 43 61 6c 6c 55 |ef power|c..CallU|
|00000320| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 28 2a 28 55 |niversal|Proc(*(U|
|00000330| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 50 74 72 2a |niversal|ProcPtr*|
|00000340| 29 74 68 65 50 74 72 2c | 31 39 32 2c 74 68 65 50 |)thePtr,|192,theP|
|00000350| 74 72 29 3b 0d 23 65 6c | 73 65 0d 09 66 4a 75 6d |tr);.#el|se..fJum|
|00000360| 70 49 74 28 74 68 65 50 | 74 72 29 3b 09 09 09 09 |pIt(theP|tr);....|
|00000370| 09 09 09 2f 2a 20 70 61 | 73 73 20 6d 65 73 73 61 |.../* pa|ss messa|
|00000380| 67 65 20 74 6f 20 64 72 | 69 76 65 72 20 2a 2f 0d |ge to dr|iver */.|
|00000390| 23 65 6e 64 69 66 0d 09 | 7d 0d 0d 76 6f 69 64 20 |#endif..|}..void |
|000003a0| 6d 61 69 6e 28 29 0d 7b | 0d 09 6d 79 52 65 63 2e |main().{|..myRec.|
|000003b0| 6d 79 49 6e 74 65 67 65 | 72 20 3d 20 30 3b 0d 09 |myIntege|r = 0;..|
|000003c0| 6d 79 52 65 63 2e 6d 79 | 52 65 61 6c 20 3d 20 36 |myRec.my|Real = 6|
|000003d0| 2e 32 3b 0d 09 73 74 72 | 63 70 79 28 6d 79 52 65 |.2;..str|cpy(myRe|
|000003e0| 63 2e 6d 79 53 74 72 69 | 6e 67 2c 22 48 65 6c 6c |c.myStri|ng,"Hell|
|000003f0| 6f 22 29 3b 0d 09 6d 79 | 52 65 63 2e 6d 79 46 6c |o");..my|Rec.myFl|
|00000400| 61 67 73 20 3d 20 31 30 | 3b 0d 09 6d 79 4c 69 73 |ags = 10|;..myLis|
|00000410| 74 20 3d 20 32 3b 0d 09 | 6f 6c 64 54 69 63 6b 73 |t = 2;..|oldTicks|
|00000420| 20 3d 20 30 3b 0d 09 74 | 68 65 52 65 61 6c 20 3d | = 0;..t|heReal =|
|00000430| 20 36 2e 30 3b 0d 23 69 | 66 64 65 66 20 70 6f 77 | 6.0;.#i|fdef pow|
|00000440| 65 72 63 0d 09 74 68 65 | 50 72 6f 63 50 74 72 20 |erc..the|ProcPtr |
|00000450| 3d 20 28 6c 6f 6e 67 29 | 4e 65 77 52 6f 75 74 69 |= (long)|NewRouti|
|00000460| 6e 65 44 65 73 63 72 69 | 70 74 6f 72 28 28 50 72 |neDescri|ptor((Pr|
|00000470| 6f 63 50 74 72 29 4f 76 | 65 72 50 72 6f 63 2c 31 |ocPtr)Ov|erProc,1|
|00000480| 39 32 2c 31 29 3b 0d 23 | 65 6c 73 65 0d 09 74 68 |92,1);.#|else..th|
|00000490| 65 50 72 6f 63 50 74 72 | 20 3d 20 28 6c 6f 6e 67 |eProcPtr| = (long|
|000004a0| 29 4f 76 65 72 50 72 6f | 63 3b 0d 23 65 6e 64 69 |)OverPro|c;.#endi|
|000004b0| 66 0d 0d 2f 2a 20 49 6e | 69 74 69 61 6c 69 7a 65 |f../* In|itialize|
|000004c0| 20 46 61 63 65 49 74 20 | 2a 2f 0d 09 73 74 72 63 | FaceIt |*/..strc|
|000004d0| 70 79 28 66 52 65 63 2e | 75 4e 61 6d 65 2c 20 22 |py(fRec.|uName, "|
|000004e0| 76 44 65 6d 6f 2e 52 73 | 72 63 22 29 3b 0d 09 46 |vDemo.Rs|rc");..F|
|000004f0| 61 63 65 49 74 28 30 2c | 44 6f 49 6e 69 74 2c 30 |aceIt(0,|DoInit,0|
|00000500| 2c 30 2c 30 2c 30 29 3b | 0d 0d 2f 2a 20 4f 70 65 |,0,0,0);|../* Ope|
|00000510| 6e 20 4d 6f 64 65 6c 65 | 73 73 20 57 69 6e 64 6f |n Modele|ss Windo|
|00000520| 77 20 75 73 69 6e 67 20 | 46 57 4e 44 20 31 30 30 |w using |FWND 100|
|00000530| 30 20 2a 2f 0d 09 46 61 | 63 65 49 74 28 30 2c 4e |0 */..Fa|ceIt(0,N|
|00000540| 65 77 57 6e 64 2c 31 30 | 30 30 2c 31 2c 30 2c 30 |ewWnd,10|00,1,0,0|
|00000550| 29 3b 0d 0d 09 66 6f 72 | 20 28 3b 3b 29 20 7b 0d |);...for| (;;) {.|
|00000560| 09 09 46 61 63 65 49 74 | 28 30 2c 44 6f 4c 6f 6f |..FaceIt|(0,DoLoo|
|00000570| 70 2c 30 2c 30 2c 30 2c | 30 29 3b 0d 2f 2a 20 53 |p,0,0,0,|0);./* S|
|00000580| 74 61 6e 64 61 72 64 20 | 22 41 62 6f 75 74 22 20 |tandard |"About" |
|00000590| 4d 65 6e 75 20 49 74 65 | 6d 20 53 65 6c 65 63 74 |Menu Ite|m Select|
|000005a0| 69 6f 6e 20 2a 2f 0d 09 | 09 69 66 20 28 28 66 52 |ion */..|.if ((fR|
|000005b0| 65 63 2e 75 4d 65 6e 75 | 49 44 20 3d 3d 20 31 30 |ec.uMenu|ID == 10|
|000005c0| 31 4c 29 20 26 26 20 28 | 66 52 65 63 2e 75 4d 65 |1L) && (|fRec.uMe|
|000005d0| 6e 75 49 74 65 6d 20 3d | 3d 20 31 4c 29 29 20 7b |nuItem =|= 1L)) {|
|000005e0| 0d 09 09 09 73 74 72 63 | 70 79 28 66 52 65 63 2e |....strc|py(fRec.|
|000005f0| 75 53 74 72 69 6e 67 2c | 20 22 44 65 6d 6f 6e 73 |uString,| "Demons|
|00000600| 74 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 75 |tration |of the u|
|00000610| 73 65 20 6f 66 20 56 69 | 65 77 49 74 5c 72 77 69 |se of Vi|ewIt\rwi|
|00000620| 6e 64 6f 77 73 20 69 6e | 20 61 20 46 61 63 65 49 |ndows in| a FaceI|
|00000630| 74 2d 62 61 73 65 64 20 | 70 72 6f 67 72 61 6d 2e |t-based |program.|
|00000640| 22 29 3b 0d 09 09 09 46 | 61 63 65 49 74 28 30 2c |");....F|aceIt(0,|
|00000650| 53 68 6f 53 74 72 2c 33 | 2c 31 32 2c 28 31 20 2b |ShoStr,3|,12,(1 +|
|00000660| 20 28 34 30 39 20 2a 20 | 36 35 35 33 36 29 29 2c | (409 * |65536)),|
|00000670| 30 29 3b 0d 09 09 09 7d | 0d 2f 2a 20 48 69 74 20 |0);....}|./* Hit |
|00000680| 69 6e 20 4d 6f 64 65 6c | 65 73 73 20 57 69 6e 64 |in Model|ess Wind|
|00000690| 6f 77 27 73 20 22 4f 70 | 65 6e 20 4d 6f 64 61 6c |ow's "Op|en Modal|
|000006a0| 22 20 42 75 74 74 6f 6e | 20 2a 2f 0d 09 09 65 6c |" Button| */...el|
|000006b0| 73 65 20 69 66 20 28 28 | 66 52 65 63 2e 75 4d 65 |se if ((|fRec.uMe|
|000006c0| 6e 75 49 44 20 3d 3d 20 | 31 30 30 30 4c 29 20 26 |nuID == |1000L) &|
|000006d0| 26 20 28 66 52 65 63 2e | 77 63 48 69 74 20 3d 3d |& (fRec.|wcHit ==|
|000006e0| 20 32 4c 29 29 20 7b 0d | 09 09 09 46 61 63 65 49 | 2L)) {.|...FaceI|
|000006f0| 74 28 30 2c 4e 65 77 57 | 6e 64 2c 31 30 30 31 2c |t(0,NewW|nd,1001,|
|00000700| 30 2c 30 2c 30 29 3b 09 | 09 09 09 2f 2a 20 4f 70 |0,0,0);.|.../* Op|
|00000710| 65 6e 20 4d 6f 64 61 6c | 20 57 69 6e 64 6f 77 20 |en Modal| Window |
|00000720| 2a 2f 0d 09 09 09 66 6f | 72 20 28 3b 3b 29 20 7b |*/....fo|r (;;) {|
|00000730| 0d 09 09 09 09 46 61 63 | 65 49 74 28 30 2c 4d 64 |.....Fac|eIt(0,Md|
|00000740| 6c 57 6e 64 2c 31 30 30 | 31 2c 30 2c 30 2c 30 29 |lWnd,100|1,0,0,0)|
|00000750| 3b 09 09 09 2f 2a 20 50 | 72 6f 63 65 73 73 20 4d |;.../* P|rocess M|
|00000760| 6f 64 61 6c 20 45 76 65 | 6e 74 73 20 2a 2f 0d 09 |odal Eve|nts */..|
|00000770| 09 09 09 69 66 20 28 66 | 52 65 63 2e 77 63 48 69 |...if (f|Rec.wcHi|
|00000780| 74 20 3d 3d 20 2d 31 4c | 29 09 09 09 09 09 09 2f |t == -1L|)....../|
|00000790| 2a 20 48 69 74 20 69 6e | 20 43 6c 6f 73 65 20 42 |* Hit in| Close B|
|000007a0| 6f 78 20 2a 2f 0d 09 09 | 09 09 09 62 72 65 61 6b |ox */...|...break|
|000007b0| 3b 0d 09 09 09 09 65 6c | 73 65 20 69 66 20 28 66 |;.....el|se if (f|
|000007c0| 52 65 63 2e 77 63 48 69 | 74 20 3d 3d 20 31 4c 29 |Rec.wcHi|t == 1L)|
|000007d0| 20 7b 09 09 09 2f 2a 20 | 48 69 74 20 69 6e 20 22 | {.../* |Hit in "|
|000007e0| 4f 70 65 6e 20 4e 65 73 | 74 65 64 22 20 42 75 74 |Open Nes|ted" But|
|000007f0| 74 6f 6e 20 2a 2f 0d 09 | 09 09 09 09 46 61 63 65 |ton */..|....Face|
|00000800| 49 74 28 30 2c 4e 65 77 | 57 6e 64 2c 31 30 30 32 |It(0,New|Wnd,1002|
|00000810| 2c 30 2c 30 2c 28 6c 6f | 6e 67 29 26 6d 79 52 65 |,0,0,(lo|ng)&myRe|
|00000820| 63 29 3b 09 09 09 2f 2a | 20 4f 70 65 6e 20 4e 65 |c);.../*| Open Ne|
|00000830| 73 74 65 64 20 4d 6f 64 | 61 6c 20 2a 2f 0d 09 09 |sted Mod|al */...|
|00000840| 09 09 09 46 61 63 65 49 | 74 28 30 2c 47 65 74 43 |...FaceI|t(0,GetC|
|00000850| 74 6c 2c 31 30 30 32 2c | 30 2c 33 2c 33 29 3b 09 |tl,1002,|0,3,3);.|
|00000860| 09 09 09 09 09 09 09 2f | 2a 20 4c 69 6e 6b 20 53 |......./|* Link S|
|00000870| 63 72 6f 6c 6c 61 62 6c | 65 20 4c 69 73 74 20 2a |crollabl|e List *|
|00000880| 2f 0d 09 09 09 09 09 46 | 61 63 65 49 74 28 30 2c |/......F|aceIt(0,|
|00000890| 4c 6e 6b 43 74 6c 2c 28 | 6c 6f 6e 67 29 66 52 65 |LnkCtl,(|long)fRe|
|000008a0| 63 2e 63 43 6f 6e 74 72 | 6f 6c 2c 28 6c 6f 6e 67 |c.cContr|ol,(long|
|000008b0| 29 26 6d 79 4c 69 73 74 | 2c 32 2c 30 29 3b 0d 09 |)&myList|,2,0);..|
|000008c0| 09 09 09 09 46 61 63 65 | 49 74 28 30 2c 47 65 74 |....Face|It(0,Get|
|000008d0| 43 74 6c 2c 31 30 30 32 | 2c 30 2c 32 2c 33 29 3b |Ctl,1002|,0,2,3);|
|000008e0| 09 09 09 09 09 09 09 09 | 2f 2a 20 53 65 74 20 4f |........|/* Set O|
|000008f0| 76 65 72 72 69 64 65 20 | 50 72 6f 63 20 2a 2f 0d |verride |Proc */.|
|00000900| 09 09 09 09 09 46 61 63 | 65 49 74 28 30 2c 4f 76 |.....Fac|eIt(0,Ov|
|00000910| 72 43 74 6c 2c 28 6c 6f | 6e 67 29 66 52 65 63 2e |rCtl,(lo|ng)fRec.|
|00000920| 63 43 6f 6e 74 72 6f 6c | 2c 74 68 65 50 72 6f 63 |cControl|,theProc|
|00000930| 50 74 72 2c 30 2c 30 29 | 3b 0d 09 09 09 09 09 46 |Ptr,0,0)|;......F|
|00000940| 61 63 65 49 74 28 30 2c | 53 65 74 56 61 6c 2c 31 |aceIt(0,|SetVal,1|
|00000950| 30 30 32 2c 30 2c 30 2c | 30 29 3b 09 09 09 09 09 |002,0,0,|0);.....|
|00000960| 09 09 09 2f 2a 20 53 65 | 74 20 4c 69 6e 6b 65 64 |.../* Se|t Linked|
|00000970| 20 56 61 6c 75 65 73 20 | 2a 2f 0d 09 09 09 09 09 | Values |*/......|
|00000980| 68 65 6c 70 53 68 6f 77 | 6e 20 3d 20 66 61 6c 73 |helpShow|n = fals|
|00000990| 65 3b 0d 09 09 09 09 09 | 66 6f 72 20 28 3b 3b 29 |e;......|for (;;)|
|000009a0| 20 7b 0d 09 09 09 09 09 | 09 46 61 63 65 49 74 28 | {......|.FaceIt(|
|000009b0| 30 2c 4d 64 6c 57 6e 64 | 2c 31 30 30 32 2c 2d 32 |0,MdlWnd|,1002,-2|
|000009c0| 2c 30 2c 30 29 3b 09 09 | 09 09 09 09 09 2f 2a 20 |,0,0);..|...../* |
|000009d0| 50 72 6f 63 65 73 73 20 | 4d 6f 64 61 6c 20 45 76 |Process |Modal Ev|
|000009e0| 65 6e 74 73 20 2a 2f 0d | 09 09 09 09 09 09 69 66 |ents */.|......if|
|000009f0| 20 28 66 52 65 63 2e 75 | 4d 65 6e 75 49 44 20 3d | (fRec.u|MenuID =|
|00000a00| 3d 20 30 4c 29 20 7b 09 | 09 09 09 09 09 09 09 09 |= 0L) {.|........|
|00000a10| 2f 2a 20 4e 6f 20 4d 65 | 73 73 61 67 65 20 2a 2f |/* No Me|ssage */|
|00000a20| 0d 09 09 09 09 09 09 09 | 6e 65 77 54 69 63 6b 73 |........|newTicks|
|00000a30| 20 3d 20 54 69 63 6b 43 | 6f 75 6e 74 28 29 3b 0d | = TickC|ount();.|
|00000a40| 09 09 09 09 09 09 09 69 | 66 20 28 6e 65 77 54 69 |.......i|f (newTi|
|00000a50| 63 6b 73 20 3e 20 6f 6c | 64 54 69 63 6b 73 20 2b |cks > ol|dTicks +|
|00000a60| 20 36 30 29 20 7b 0d 09 | 09 09 09 09 09 09 09 6f | 60) {..|.......o|
|00000a70| 6c 64 54 69 63 6b 73 20 | 3d 20 6e 65 77 54 69 63 |ldTicks |= newTic|
|00000a80| 6b 73 3b 0d 09 09 09 09 | 09 09 09 09 46 61 63 65 |ks;.....|....Face|
|00000a90| 49 74 28 30 2c 47 65 74 | 43 74 6c 2c 31 30 30 32 |It(0,Get|Ctl,1002|
|00000aa0| 2c 30 2c 32 2c 38 29 3b | 0d 09 09 09 09 09 09 09 |,0,2,8);|........|
|00000ab0| 09 53 65 74 43 74 6c 56 | 61 6c 75 65 28 66 52 65 |.SetCtlV|alue(fRe|
|00000ac0| 63 2e 63 43 6f 6e 74 72 | 6f 6c 2c 28 66 52 65 63 |c.cContr|ol,(fRec|
|00000ad0| 2e 63 56 61 6c 75 65 20 | 25 20 34 29 20 2b 20 31 |.cValue |% 4) + 1|
|00000ae0| 29 3b 0d 09 09 09 09 09 | 09 09 09 7d 0d 09 09 09 |);......|...}....|
|00000af0| 09 09 09 09 7d 0d 09 09 | 09 09 09 09 65 6c 73 65 |....}...|....else|
|00000b00| 20 69 66 20 28 66 52 65 | 63 2e 77 76 48 69 74 20 | if (fRe|c.wvHit |
|00000b10| 3d 3d 20 31 4c 29 20 7b | 09 09 09 09 09 09 09 2f |== 1L) {|......./|
|00000b20| 2a 20 48 69 74 20 69 6e | 20 56 69 65 77 20 23 31 |* Hit in| View #1|
|00000b30| 20 2a 2f 0d 09 09 09 09 | 09 09 09 69 66 20 28 66 | */.....|...if (f|
|00000b40| 52 65 63 2e 77 63 48 69 | 74 20 3d 3d 20 31 4c 29 |Rec.wcHi|t == 1L)|
|00000b50| 09 09 09 09 09 09 09 09 | 09 09 2f 2a 20 48 69 74 |........|../* Hit|
|00000b60| 20 69 6e 20 22 4f 4b 22 | 20 42 75 74 74 6f 6e 20 | in "OK"| Button |
|00000b70| 2a 2f 0d 09 09 09 09 09 | 09 09 09 62 72 65 61 6b |*/......|...break|
|00000b80| 3b 0d 09 09 09 09 09 09 | 09 65 6c 73 65 20 69 66 |;.......|.else if|
|00000b90| 20 28 66 52 65 63 2e 77 | 63 48 69 74 20 3d 3d 20 | (fRec.w|cHit == |
|00000ba0| 32 4c 29 20 7b 09 09 09 | 09 09 09 2f 2a 20 48 69 |2L) {...|.../* Hi|
|00000bb0| 74 20 69 6e 20 22 53 68 | 6f 77 2f 48 69 64 65 22 |t in "Sh|ow/Hide"|
|00000bc0| 20 2a 2f 0d 09 09 09 09 | 09 09 09 09 69 66 20 28 | */.....|....if (|
|00000bd0| 68 65 6c 70 53 68 6f 77 | 6e 20 3d 3d 20 74 72 75 |helpShow|n == tru|
|00000be0| 65 29 20 7b 0d 09 09 09 | 09 09 09 09 09 09 46 61 |e) {....|......Fa|
|00000bf0| 63 65 49 74 28 30 2c 53 | 68 6f 43 74 6c 2c 30 2c |ceIt(0,S|hoCtl,0,|
|00000c00| 30 2c 2d 33 2c 32 29 3b | 09 09 09 09 09 2f 2a 20 |0,-3,2);|...../* |
|00000c10| 48 69 64 65 20 76 33 2c | 20 53 68 6f 77 20 76 32 |Hide v3,| Show v2|
|00000c20| 20 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 68 65 6c | */.....|.....hel|
|00000c30| 70 53 68 6f 77 6e 20 3d | 20 66 61 6c 73 65 3b 7d |pShown =| false;}|
|00000c40| 0d 09 09 09 09 09 09 09 | 09 65 6c 73 65 20 7b 0d |........|.else {.|
|00000c50| 09 09 09 09 09 09 09 09 | 09 46 61 63 65 49 74 28 |........|.FaceIt(|
|00000c60| 30 2c 53 68 6f 43 74 6c | 2c 30 2c 30 2c 2d 32 2c |0,ShoCtl|,0,0,-2,|
|00000c70| 33 29 3b 09 09 09 09 09 | 2f 2a 20 48 69 64 65 20 |3);.....|/* Hide |
|00000c80| 76 32 2c 20 53 68 6f 77 | 20 76 33 20 2a 2f 0d 09 |v2, Show| v3 */..|
|00000c90| 09 09 09 09 09 09 09 09 | 68 65 6c 70 53 68 6f 77 |........|helpShow|
|00000ca0| 6e 20 3d 20 74 72 75 65 | 3b 7d 0d 09 09 09 09 09 |n = true|;}......|
|00000cb0| 09 09 09 7d 0d 09 09 09 | 09 09 09 09 7d 0d 09 09 |...}....|....}...|
|00000cc0| 09 09 09 09 65 6c 73 65 | 20 69 66 20 28 66 52 65 |....else| if (fRe|
|00000cd0| 63 2e 77 76 48 69 74 20 | 3d 3d 20 32 4c 29 09 09 |c.wvHit |== 2L)..|
|00000ce0| 09 09 09 09 09 09 2f 2a | 20 48 69 74 20 69 6e 20 |....../*| Hit in |
|00000cf0| 56 69 65 77 20 23 32 20 | 2a 2f 0d 09 09 09 09 09 |View #2 |*/......|
|00000d00| 09 09 69 66 20 28 28 66 | 52 65 63 2e 77 63 48 69 |..if ((f|Rec.wcHi|
|00000d10| 74 20 3d 3d 20 36 4c 29 | 7c 7c 28 66 52 65 63 2e |t == 6L)|||(fRec.|
|00000d20| 77 63 48 69 74 20 3d 3d | 20 37 4c 29 29 20 7b 20 |wcHit ==| 7L)) { |
|00000d30| 2f 2a 20 55 70 2f 44 6f | 77 6e 20 41 72 72 6f 77 |/* Up/Do|wn Arrow|
|00000d40| 20 2a 2f 0d 09 09 09 09 | 09 09 09 09 46 61 63 65 | */.....|....Face|
|00000d50| 49 74 28 30 2c 47 65 74 | 43 74 6c 2c 31 30 30 32 |It(0,Get|Ctl,1002|
|00000d60| 2c 30 2c 32 2c 28 6c 6f | 6e 67 29 66 52 65 63 2e |,0,2,(lo|ng)fRec.|
|00000d70| 77 63 48 69 74 29 3b 0d | 09 09 09 09 09 09 09 09 |wcHit);.|........|
|00000d80| 64 65 6c 74 61 20 3d 20 | 30 2e 30 30 31 20 2a 20 |delta = |0.001 * |
|00000d90| 28 66 52 65 63 2e 63 4d | 69 6e 20 2d 20 32 29 3b |(fRec.cM|in - 2);|
|00000da0| 0d 09 09 09 09 09 09 09 | 09 6d 79 52 65 63 2e 6d |........|.myRec.m|
|00000db0| 79 52 65 61 6c 20 3d 20 | 6d 79 52 65 63 2e 6d 79 |yReal = |myRec.my|
|00000dc0| 52 65 61 6c 20 2b 20 64 | 65 6c 74 61 3b 0d 09 09 |Real + d|elta;...|
|00000dd0| 09 09 09 09 09 09 46 61 | 63 65 49 74 28 30 2c 53 |......Fa|ceIt(0,S|
|00000de0| 65 74 56 61 6c 2c 31 30 | 30 32 2c 30 2c 32 2c 32 |etVal,10|02,0,2,2|
|00000df0| 29 3b 0d 09 09 09 09 09 | 09 09 09 44 65 6c 61 79 |);......|...Delay|
|00000e00| 28 35 2c 26 66 52 65 63 | 2e 75 49 34 29 3b 0d 09 |(5,&fRec|.uI4);..|
|00000e10| 09 09 09 09 09 09 09 7d | 0d 09 09 09 09 09 09 7d |.......}|.......}|
|00000e20| 0d 09 09 09 09 09 46 61 | 63 65 49 74 28 30 2c 47 |......Fa|ceIt(0,G|
|00000e30| 65 74 56 61 6c 2c 31 30 | 30 32 2c 30 2c 30 2c 30 |etVal,10|02,0,0,0|
|00000e40| 29 3b 09 09 09 09 09 09 | 09 09 2f 2a 20 47 65 74 |);......|../* Get|
|00000e50| 20 4c 69 6e 6b 65 64 20 | 56 61 6c 75 65 73 20 2a | Linked |Values *|
|00000e60| 2f 0d 09 09 09 09 09 46 | 61 63 65 49 74 28 30 2c |/......F|aceIt(0,|
|00000e70| 45 6e 64 57 6e 64 2c 31 | 30 30 32 2c 30 2c 30 2c |EndWnd,1|002,0,0,|
|00000e80| 30 29 3b 09 09 09 09 09 | 09 09 09 2f 2a 20 43 6c |0);.....|.../* Cl|
|00000e90| 6f 73 65 20 4e 65 73 74 | 65 64 20 4d 6f 64 61 6c |ose Nest|ed Modal|
|00000ea0| 20 2a 2f 0d 09 09 09 09 | 09 7d 0d 09 09 09 09 7d | */.....|.}.....}|
|00000eb0| 0d 09 09 09 46 61 63 65 | 49 74 28 30 2c 45 6e 64 |....Face|It(0,End|
|00000ec0| 57 6e 64 2c 31 30 30 31 | 2c 30 2c 30 2c 30 29 3b |Wnd,1001|,0,0,0);|
|00000ed0| 09 09 09 09 2f 2a 20 43 | 6c 6f 73 65 20 4d 6f 64 |..../* C|lose Mod|
|00000ee0| 61 6c 20 57 69 6e 64 6f | 77 20 2a 2f 0d 09 09 20 |al Windo|w */... |
|00000ef0| 20 7d 0d 2f 2a 20 48 69 | 74 20 69 6e 20 4d 6f 64 | }./* Hi|t in Mod|
|00000f00| 65 6c 65 73 73 20 57 69 | 6e 64 6f 77 27 73 20 22 |eless Wi|ndow's "|
|00000f10| 57 68 79 20 56 69 65 77 | 49 74 3f 22 20 42 75 74 |Why View|It?" But|
|00000f20| 74 6f 6e 20 2a 2f 0d 09 | 09 65 6c 73 65 20 69 66 |ton */..|.else if|
|00000f30| 20 28 28 66 52 65 63 2e | 75 4d 65 6e 75 49 44 20 | ((fRec.|uMenuID |
|00000f40| 3d 3d 20 31 30 30 30 4c | 29 20 26 26 20 28 66 52 |== 1000L|) && (fR|
|00000f50| 65 63 2e 77 63 48 69 74 | 20 3d 3d 20 33 4c 29 29 |ec.wcHit| == 3L))|
|00000f60| 20 7b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 4e | {....Fa|ceIt(0,N|
|00000f70| 65 77 57 6e 64 2c 31 30 | 30 33 2c 30 2c 30 2c 28 |ewWnd,10|03,0,0,(|
|00000f80| 6c 6f 6e 67 29 26 74 68 | 65 52 65 61 6c 29 3b 0d |long)&th|eReal);.|
|00000f90| 09 09 09 46 61 63 65 49 | 74 28 30 2c 53 65 74 56 |...FaceI|t(0,SetV|
|00000fa0| 61 6c 2c 31 30 30 33 2c | 30 2c 30 2c 30 29 3b 0d |al,1003,|0,0,0);.|
|00000fb0| 09 09 09 66 6f 72 20 28 | 3b 3b 29 20 7b 0d 09 09 |...for (|;;) {...|
|00000fc0| 09 09 46 61 63 65 49 74 | 28 30 2c 4d 64 6c 57 6e |..FaceIt|(0,MdlWn|
|00000fd0| 64 2c 31 30 30 33 2c 30 | 2c 30 2c 30 29 3b 0d 09 |d,1003,0|,0,0);..|
|00000fe0| 09 09 09 69 66 20 28 66 | 52 65 63 2e 77 63 48 69 |...if (f|Rec.wcHi|
|00000ff0| 74 20 3d 3d 20 31 4c 29 | 20 62 72 65 61 6b 3b 7d |t == 1L)| break;}|
|00001000| 0d 09 09 09 46 61 63 65 | 49 74 28 30 2c 47 65 74 |....Face|It(0,Get|
|00001010| 56 61 6c 2c 31 30 30 33 | 2c 30 2c 30 2c 30 29 3b |Val,1003|,0,0,0);|
|00001020| 0d 09 09 09 46 61 63 65 | 49 74 28 30 2c 45 6e 64 |....Face|It(0,End|
|00001030| 57 6e 64 2c 31 30 30 33 | 2c 30 2c 30 2c 30 29 3b |Wnd,1003|,0,0,0);|
|00001040| 0d 09 09 09 7d 0d 09 09 | 7d 0d 7d 00 00 00 00 00 |....}...|}.}.....|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001090| 00 00 23 cd 00 00 00 00 | 00 00 00 00 00 00 00 00 |..#.....|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 09 76 44 65 6d 6f 4d 43 | 2e 63 02 00 00 00 50 61 |.vDemoMC|.c....Pa|
|000010c0| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 02 |rtSITx..|........|
|000010d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 aa 02 9a 26 00 00 | 00 00 00 00 01 7e 00 00 |.....&..|.....~..|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 01 a4 25 00 00 00 |........|....%...|
|00001110| 25 23 0e 38 2f 31 36 2f | 39 32 20 5a 45 44 43 4f |%#.8/16/|92 ZEDCO|
|00001120| 52 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |R.......|........|
|00001130| 00 00 00 00 01 be 25 00 | 00 00 25 23 0e 38 2f 31 |......%.|..%#.8/1|
|00001140| 36 2f 39 32 20 5a 45 44 | 43 4f 52 00 00 00 00 00 |6/92 ZED|COR.....|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 be |........|........|
|00001160| 25 00 00 00 26 a3 08 56 | 69 65 77 52 46 2e b9 00 |%...&..V|iewRF...|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 03 | 00 02 00 2e 00 0f 01 55 |........|.......U|
|000011b0| 01 cc 00 2e 00 0f 01 55 | 01 cc a9 cc 74 37 00 00 |.......U|....t7..|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|000011d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 e4 bd 40 |...L...L|...2...@|
|000011e0| 0c dc 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000011f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+